import React from 'react'
import '../styles/textlist.css';
// 图文列表组件
class TextList extends React.Component {
    constructor(props) {
        super(props)
        this.state = {}
    }
    render() {
        const { imgSrc, title, descript } = this.props;
        return (
            <div className="textlist">
                <div className="textlist-left">
                    <img src={imgSrc} />
                </div>
                <div className="textlist-right">
                    <h2>{title}</h2>
                    <p>{descript}</p>
                </div>
            </div>
        )
    }
}
export default TextList;
